Previous Book Contents Book Index Next

Inside Macintosh: Programming With the Text Encoding Conversion Manager /
Chapter 2 - Basic Text Types Reference / Basic Text Structures and Other Types


Unicode Character and String Pointer Data Types

The Unicode Converter functions that use a Unicode character data type assume that the Unicode character has the normal byte order for an unsigned 16-bit integer on the current platform and that any initial byte-order prefix character has been removed. These functions also assume that each Unicode character is aligned on a 2-byte boundary. A 16-bit Unicode character is defined by the UniChar data type.

typedef UInt16 UniChar;
You specify a Unicode character array pointer to reference an array used to hold a Unicode string. A Unicode character array pointer is defined by the UniCharArrayPtr data type.

typedef UniChar *UniCharArrayPtr;
You specify a constant Unicode character array pointer for Unicode strings used within the scope of a function whose contents are not modified by that function. A constant Unicode character array pointer is defined by the ConstUniCharArrayPtr data type.

typedef const UniChar *ConstUniCharArrayPtr;

Previous Book Contents Book Index Next

© Apple Computer, Inc.
13 NOV 1997